package com.csw.scala

object Demo24implicit {
  def main(args: Array[String]): Unit = {
    /**
      * 2、隐式转换变量
      */

    def fun(a: String)(implicit b: String) = {
      println(a + "\t" + b)
    }

    implicit val c: String = "隐式转换变量"

    //调用方法
    fun("csw")("csw1")

    fun("abc")
  }
}
